const Sequelize = require('sequelize');
module.exports = function(sequelize, DataTypes) {
  return sequelize.define('tb_Standard_ProjectBidInfo', {
    ID: {
      type: DataTypes.INTEGER,
      allowNull: false,
      primaryKey: true
    },
    KeyGUID: {
      type: DataTypes.CHAR(36),
      allowNull: false
    },
    RightCode: {
      type: DataTypes.INTEGER,
      allowNull: true
    },
    Title: {
      type: DataTypes.STRING(200),
      allowNull: true
    },
    PrjNum: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    TenderNum: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    TenderClassNum: {
      type: DataTypes.STRING(3),
      allowNull: true
    },
    TenderTypeNum: {
      type: DataTypes.STRING(3),
      allowNull: true
    },
    TenderResultDate: {
      type: DataTypes.DATEONLY,
      allowNull: true
    },
    TenderMoney: {
      type: DataTypes.DECIMAL(15,4),
      allowNull: true
    },
    PrjSize: {
      type: DataTypes.TEXT,
      allowNull: true
    },
    Area: {
      type: DataTypes.DECIMAL(15,4),
      allowNull: true
    },
    EconCorpName: {
      type: DataTypes.STRING(200),
      allowNull: true
    },
    EconCorpCode: {
      type: DataTypes.STRING(40),
      allowNull: true
    },
    TenderCorpName: {
      type: DataTypes.STRING(200),
      allowNull: true
    },
    TenderCorpCode: {
      type: DataTypes.STRING(40),
      allowNull: true
    },
    IDCardTypeNum: {
      type: DataTypes.STRING(3),
      allowNull: true
    },
    TenderEmpName: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    ConStructorIDCard: {
      type: DataTypes.STRING(30),
      allowNull: true
    },
    RegisterDate: {
      type: DataTypes.DATEONLY,
      allowNull: true
    },
    CreateTime: {
      type: DataTypes.DATE,
      allowNull: true
    },
    LastUpdateTime: {
      type: DataTypes.DATE,
      allowNull: true
    },
    LastSyncTime: {
      type: DataTypes.DATE,
      allowNull: true
    },
    STGUID: {
      type: DataTypes.CHAR(36),
      allowNull: true
    },
    FlowCode: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    dtIDSet: {
      type: DataTypes.TEXT,
      allowNull: true
    },
    BuildCorpName: {
      type: DataTypes.STRING(200),
      allowNull: true
    },
    BuildCorpCode: {
      type: DataTypes.STRING(40),
      allowNull: true
    },
    Builder: {
      type: DataTypes.STRING(20),
      allowNull: true
    },
    BuilderTel: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    BuildCorpAddress: {
      type: DataTypes.STRING(200),
      allowNull: true
    },
    IsAllowSync: {
      type: DataTypes.SMALLINT,
      allowNull: true
    },
    TenderEmpZGZS: {
      type: DataTypes.STRING(200),
      allowNull: true
    },
    ProjectGQ: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    ZLMB: {
      type: DataTypes.STRING(200),
      allowNull: true
    },
    QualificationLevOfTenderCorp: {
      type: DataTypes.TEXT,
      allowNull: true
    },
    areaflag: {
      type: DataTypes.SMALLINT,
      allowNull: true
    },
    sourceID: {
      type: DataTypes.INTEGER,
      allowNull: true
    },
    PrjFinishNum: {
      type: DataTypes.STRING(20),
      allowNull: true
    },
    FinishDate: {
      type: DataTypes.DATE,
      allowNull: true
    },
    IsSync: {
      type: DataTypes.SMALLINT,
      allowNull: true
    },
    ClassID: {
      type: DataTypes.INTEGER,
      allowNull: true
    },
    StartDate: {
      type: DataTypes.DATEONLY,
      allowNull: true
    },
    EndDate: {
      type: DataTypes.DATEONLY,
      allowNull: true
    },
    BuilderLicenceNum: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    TenderEmpTel: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    AreaCode: {
      type: DataTypes.STRING(6),
      allowNull: true
    },
    bStatus: {
      type: DataTypes.INTEGER,
      allowNull: true
    },
    ZBBidGuid: {
      type: DataTypes.CHAR(36),
      allowNull: true
    },
    ChangeFlowStatus: {
      type: DataTypes.INTEGER,
      allowNull: true
    },
    TenderCorpDetailName: {
      type: DataTypes.STRING(100),
      allowNull: true
    },
    BuildCorpDetailName: {
      type: DataTypes.STRING(100),
      allowNull: true
    },
    EconCorpDetailName: {
      type: DataTypes.STRING(100),
      allowNull: true
    },
    jgdtIDSet: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    dlxmzg: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    dlxmjbr: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    dlxmzgIDCard: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    dlxmjbrIDCard: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    IsDZYZProject: {
      type: DataTypes.SMALLINT,
      allowNull: true
    },
    Memo: {
      type: DataTypes.STRING(200),
      allowNull: true
    },
    startbidTime: {
      type: DataTypes.DATE,
      allowNull: true
    },
    SHGUID: {
      type: DataTypes.CHAR(36),
      allowNull: true
    },
    SHSyncTime: {
      type: DataTypes.DATE,
      allowNull: true
    },
    zbkzj: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    ZBCorpName: {
      type: DataTypes.TEXT,
      allowNull: true
    },
    ZBCorpCorpCode: {
      type: DataTypes.TEXT,
      allowNull: true
    },
    TenderCorpKindID: {
      type: DataTypes.INTEGER,
      allowNull: true
    },
    TenderResultEndDate: {
      type: DataTypes.DATE,
      allowNull: true
    },
    creattime: {
      type: DataTypes.STRING(100),
      allowNull: true
    }
  }, {
    sequelize,
    tableName: 'tb_Standard_ProjectBidInfo',
    timestamps: false
  });
};
